/**
 * Copyright (C) BFH www.bfh.ch 2011
 * Code written by: Patrick Dobler, Marc Folly
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package ch.bfh.ti.kybernetik.engine.model;

/**
 * Represents a {@link LightSensor} of a {@link Roboter} instance
 * 
 */
public class LightSensor implements RoboterElement {

	private double sensorIntensity;

	private double sensorAngle = 0;

	private double viewFieldSize = 0;

	private double maxLightIntensity = 0;

	public LightSensor(double distanceX, double sensorAngle, double viewFieldSize, double maxLightIntensity) {
		super();
		this.distanceX = distanceX;
		this.sensorAngle = sensorAngle;
		this.viewFieldSize = viewFieldSize;
		this.maxLightIntensity = maxLightIntensity;
	}

	private double distanceX;

	public double getSensorIntensity() {
		return sensorIntensity;
	}

	public void setSensorIntensity(double sensorIntensity) {
		this.sensorIntensity = sensorIntensity;
	}

	@Override
	public double getDistanceX() {
		return distanceX;
	}

	@Override
	public void setDistanceX(double distanceX) {
		this.distanceX = distanceX;
	}

	public void setViewFieldSize(double viewFieldSize) {
		this.viewFieldSize = viewFieldSize;
	}

	public double getViewFieldSize() {
		return viewFieldSize;
	}

	@Override
	public double getElementAngle() {
		// TODO Auto-generated method stub
		return sensorAngle;
	}

	@Override
	public void setElementAngle(double elementAngle) {
		this.sensorAngle = elementAngle;

	}

	public void setMaxLightIntensity(double maxLightIntensity) {
		this.maxLightIntensity = maxLightIntensity;
	}

	public double getMaxLightIntensity() {
		return maxLightIntensity;
	}

}
